

    \filetitle{resample}{Resample from a VAR object}{VAR/resample}

	\paragraph{Syntax}

\begin{verbatim}
Outp = resample(V,Inp,Range,NDraw,...)
Outp = resample(V,[ ],Range,NDraw,...)
\end{verbatim}

\paragraph{Input arguments}

\begin{itemize}
\item
  \texttt{V} {[} VAR {]} - VAR object to resample from.
\item
  \texttt{Inp} {[} struct \textbar{} tseries {]} - Input database or
  tseries used in bootstrap; not needed when
  \texttt{\textquotesingle{}method=\textquotesingle{}\ \textquotesingle{}montecarlo\textquotesingle{}}.
\item
  \texttt{Range} {[} numeric {]} - Range for which data will be
  returned.
\end{itemize}

\paragraph{Output arguments}

\begin{itemize}
\tightlist
\item
  \texttt{Outp} {[} struct \textbar{} tseries {]} - Resampled output
  database or tseries.
\end{itemize}

\paragraph{Options}

\begin{itemize}
\item
  \texttt{\textquotesingle{}deviation=\textquotesingle{}} {[}
  \texttt{true} \textbar{} \emph{\texttt{false}} {]} - Do not include
  the constant term in simulations.
\item
  \texttt{\textquotesingle{}group=\textquotesingle{}} {[} numeric
  \textbar{} \emph{\texttt{NaN}} {]} - Choose group whose parameters
  will be used in resampling; required in VAR objects with multiple
  groups when
  \texttt{\textquotesingle{}deviation=\textquotesingle{}\ false}.
\item
  \texttt{\textquotesingle{}method=\textquotesingle{}} {[}
  \texttt{\textquotesingle{}bootstrap\textquotesingle{}} \textbar{}
  \emph{\texttt{\textquotesingle{}montecarlo\textquotesingle{}}}
  \textbar{} function\_handle {]} - Bootstrap from estimated residuals,
  resample from normal distribution, or use user-supplied sampler.
\item
  \texttt{\textquotesingle{}progress=\textquotesingle{}} {[}
  \texttt{true} \textbar{} \emph{\texttt{false}} {]} - Display progress
  bar in the command window.
\item
  \texttt{\textquotesingle{}randomise=\textquotesingle{}} {[}
  \texttt{true} \textbar{} \emph{\texttt{false}} {]} - Randomise or fix
  pre-sample initial condition.
\item
  \texttt{\textquotesingle{}wild=\textquotesingle{}} {[} \texttt{true}
  \textbar{} \emph{\texttt{false}} {]} - Use wild bootstrap instead of
  standard Efron bootstrap when
  \texttt{\textquotesingle{}method=\textquotesingle{}\ \textquotesingle{}bootstrap\textquotesingle{}}.
\end{itemize}

\paragraph{Description}

\paragraph{Example}


